package Locomotive;

import javax.swing.JFrame;

/**
 *
 * @author Mikael Köhlmyr | mikael@kohlmyr.com | http://www.kmyr.net
 */
public class Window extends JFrame{
    private final Screen screen;

    public Window(Screen screen){
        this.screen = screen;
        super.setTitle("Locomotive v0.1 | Particles");
        super.setBounds(0, 0, Screen.WIDTH + Screen.OFF_X, Screen.HEIGHT + Screen.OFF_Y);
        super.setResizable(false);
        super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public void configure(){
        super.add(this.screen);
        super.setFocusable(true);
        super.setVisible(true);
    }

    public static void main(String[] args){
        Screen screen = new Screen();
        screen.configure();
        Window window = new Window(screen);
        window.configure();
    }
}
